﻿<div class="view">
	<?php 
	if ($data->status != 0)
		{
			echo $data->offer; 
		}
	?>
	<br/>
	<?php 
	if (!Yii::app()->user->isGuest) {
		if (SwapsController::actionIsCreator($data->swap_id) == 1)
		{
			echo CHtml::link('Elfogadom',array('AcceptOffer','id'=>$data->swap_id));
		}
	}
	?>
</div>